package com.shujia.scala

object Demo3If {
  def main(args: Array[String]): Unit = {
    val age = 23
    val name = "张三"

    if (age >= 18) {
      println(s"${name}:已成年")
    } else if (age < 18) {
      println(s"${name}:未成年")
    } else {
      println("其他")
    }
  }
}
